package com.riguz.springcloud.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
public class DatabaseException extends RuntimeException{
    public DatabaseException(String detail){
        super("Data base operation failed:" + detail);
    }
}
